/**
 * 分包合同签订 api 封装
 *
 * @Author:    ccdcc
 * @Date:      2024-07-30 17:17:40
 * @Copyright  njku6jngf
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const concludeSignApi = {
  /**
   * 分页查询  @author  ccdcc
   */
  queryPage: (param) => {
    return postRequest('/concludeSign/queryPage', param);
  },

  /**
   * 增加  @author  ccdcc
   */
  add: (param) => {
    return postRequest('/concludeSign/add', param);
  },

  /**
   * 修改  @author  ccdcc
   */
  update: (param) => {
    return postRequest('/concludeSign/update', param);
  },

  /**
   * 删除  @author  ccdcc
   */
  delete: (id) => {
    return getRequest(`/concludeSign/delete/${id}`);
  },

  /**
   * 批量删除  @author  ccdcc
   */
  batchDelete: (idList) => {
    return postRequest('/concludeSign/batchDelete', idList);
  },
  // 供应商列表
  SupplierList: () => {
    return postRequest('/subcontractorInfo/queryAll');
  },
  getFileUrl: (param) => {
    return getRequest('/support/file/getFileUrl',param);
  },
  //批准
  concludeSignAppvoe: (id) => {
    return getRequest(`/concludeSign/approve/${id}`);
  },
  concludeSignnotApprove: (param) => {
    return getRequest(`/concludeSign/notApprove`,param);
  },
  ///concludeSign/notApprove
  ///concludeSign/approve/{id}
  ///support/file/getFileUrl
};
